package com.headingdata.demo;

public class Test1 {
    public static void main(String[] args) {
        //求最大值
        int[] values = {75,98,1000,10000,25000,45,-15};
        int max = values[0];
        for (int i = 1;i < values.length;i++){
            if(max < values[i]){
                max = values[i];
            }
        }
        System.out.println(max);
    }
}
